function scores = scommittee_train(y1, y2, ycorrect)
    num_classes = size(unique(ycorrect), 1);
    N = size(ycorrect, 1);
    scores = zeros(num_classes, num_classes);
    
    for i = 1 : N
        if y1(i) == ycorrect(i)
            scores(y1(i), y2(i)) = scores(y1(i), y2(i)) + 1;
        end
        if y2(i) == ycorrect(i)
            scores(y1(i), y2(i)) = scores(y1(i), y2(i)) - 1;
        end
    end
    
    scores = sign(scores);
end

